/*
 * AY 2014/15 Semester 1 IS2103 Assignment Part2
 * Matric. No.:    A0102330H
 * Name:           Cui Lin
 */
package studentclient;

import ejb.AMSManagerBeanRemote;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import javax.ejb.EJB;

/**
 *
 * @author cuilin
 */
public class Main {

    @EJB
    private static AMSManagerBeanRemote ams;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            System.out.println();
            System.out.println("================================================");
            System.out.println("            Appeal Management System            ");
            System.out.println("================================================");
            System.out.print("Student Matric Number: ");
            String matricNum = br.readLine();
            System.out.print("Content: ");
            String content = br.readLine();
            ams.createAppeal(matricNum, content);
            System.out.println("Your appeal is received.");
        } catch (Exception ex) {
            System.out.println("Caught an unexpected exception ...");
        }
    }
}
